package com.gobang.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("game_record")
public class GameRecord {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String gameId;
    
    private Long blackPlayerId;
    
    private Long whitePlayerId;
    
    private Long winnerId;
    
    private Integer result; // 1-黑胜 2-白胜 3-平局 4-投降
    
    private Integer totalMoves;
    
    private LocalDateTime startTime;
    
    private LocalDateTime endTime;
    
    private LocalDateTime createTime;
}
